<script>
export default {
	data() {
		return {
			seeVideoData: this.$store.state.global.seeVideoData,
		}
	},
	created() {
		console.log('看剧页面', this.seeVideoData)

		this.gotoTeleplayDetail()
	},
	methods: {
		gotoTeleplayDetail() {
			// 向剧集列表页面传递剧集信息
			const episodeInfo = this.seeVideoData
			// 3.1如果有剧集就跳转播放页
			// 储存剧集信息
			this.$store.commit('teleplay/setEpisodeInfo', episodeInfo)
			if (tt.canIUse('PlayletExtension')) {
				tt.redirectTo({
					url: `/pages/playlet/index?seq=1&tt_album_id=${episodeInfo.album_id}&tt_episode_id=1&is_continue=1`,
				})
			} else {
				uni.redirectTo({
					url: `/pages_sub1/media-player/index`,
				})
			}
		},
	},
}
</script>

<template>
	<view class="see-video-page"> </view>
</template>

<style lang="scss">
.see-video-page {
	width: 100%;
	height: 100%;
	background-color: #000;
}
</style>
